﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.utils {
    import flash.filters.*;

    public class Filters {

        public static const NO_FILTERS:Array = [];
        public static const SHADOW:String = "SHADOW";
        public static const SUN_SHADOW:String = "SUN_SHADOW";
        public static const GREEN_OUTLINE:String = "GREEN_OUTLINE";
        public static const YELLOW_OUTLINE:String = "YELLOW_OUTLINE";
        public static const ACTOR_GLOW:String = "ACTOR_GLOW";
        public static const PATIENT_GLOW:String = "PATIENT_GLOW";
        public static const BABY_GLOW:String = "BABY_GLOW";
        public static const MACHINE_GLOW:String = "MACHINE_GLOW";
        public static const SYSTEM_GLOW:String = "SYSTEM_GLOW";
        public static const SENIOR_GLOW:String = "SENIOR_GLOW";
        public static const COMPLETE_SYMBOL:String = "COMPLETE_SYMBOL";
        public static const MISSING_SYMBOL:String = "MISSING_SYMBOL";
        public static const SYMBOLS_COMPLETE:String = "SYMBOLS_COMPLETE";
        public static const TEXT_OUTLINE:String = "TEXT_OUTLINE";
        public static const TEXT_OUTLINE_BROWN:String = "TEXT_OUTLINE_BROWN";
        public static const DESATURATE:String = "DESATURATE";
        public static const WHITE_GLOW:String = "WHITE_GLOW";
        public static const QUEUE_BUBBLE_RED:String = "QueueBubblered";
        public static const QUEUE_BUBBLE_ORANGE:String = "QueueBubbleorange";
        public static const QUEUE_BUBBLE_GREEN:String = "QueueBubblegreen";

        private static var _filters:Object = initFilters();

        private static function initFilters():Object{
            var _local1:Object = {};
            _local1[SHADOW] = new DropShadowFilter(10, 45, 0, 0.5, 10, 10);
            _local1[SUN_SHADOW] = new DropShadowFilter(0, 25, 0xFFFFFF, 1, 2, 2, 1000);
            _local1[GREEN_OUTLINE] = new DropShadowFilter(0, 45, 851712, 1, 4, 4, 1000);
            _local1[YELLOW_OUTLINE] = new DropShadowFilter(0, 45, 15845144, 1, 3, 3, 1000, 1, true);
            _local1[ACTOR_GLOW] = new GlowFilter(3394815, 1, 5, 5, 2, BitmapFilterQuality.HIGH);
            _local1[PATIENT_GLOW] = new GlowFilter(4457733, 1, 3, 3, 2, BitmapFilterQuality.HIGH);
            _local1[MACHINE_GLOW] = new GlowFilter(3394815, 1, 5, 5, 2, BitmapFilterQuality.HIGH);
            _local1[WHITE_GLOW] = new GlowFilter(0xFFFFFF, 1, 5, 5, 2, BitmapFilterQuality.HIGH);
            _local1[SYSTEM_GLOW] = new GlowFilter(0x854200, 1, 10, 10);
            _local1[SENIOR_GLOW] = new GlowFilter(0xFFFFFF, 1, 2, 2, 50, BitmapFilterQuality.HIGH);
            _local1[COMPLETE_SYMBOL] = new GlowFilter(0x66FF00, 1, 4, 4, 50, BitmapFilterQuality.HIGH);
            _local1[MISSING_SYMBOL] = new GlowFilter(5799031, 1, 4, 4, 50, BitmapFilterQuality.HIGH);
            _local1[SYMBOLS_COMPLETE] = new GlowFilter(16694102, 1, 3, 3, 50, BitmapFilterQuality.HIGH);
            _local1[TEXT_OUTLINE] = new GlowFilter(0xFFFFFF, 1, 2, 2, 50, BitmapFilterQuality.HIGH);
            _local1[TEXT_OUTLINE_BROWN] = new GlowFilter(0x834A00, 1, 2, 2, 50, BitmapFilterQuality.HIGH);
            _local1[BABY_GLOW] = new GlowFilter(3394815, 1, 3, 3, 2, BitmapFilterQuality.HIGH);
            _local1[QUEUE_BUBBLE_RED] = new GlowFilter(0xCA0000, 1, 6, 6, 4, BitmapFilterQuality.HIGH);
            _local1[QUEUE_BUBBLE_ORANGE] = new GlowFilter(16742167, 1, 6, 6, 4, BitmapFilterQuality.HIGH);
            _local1[QUEUE_BUBBLE_GREEN] = new GlowFilter(0xA400, 1, 6, 6, 4, BitmapFilterQuality.HIGH);
            var _local2:Array = [];
            var _local3:Number = 0.6;
            _local2 = _local2.concat([_local3, _local3, _local3, 0, 0]);
            _local2 = _local2.concat([_local3, _local3, _local3, 0, 0]);
            _local2 = _local2.concat([_local3, _local3, _local3, 0, 0]);
            _local2 = _local2.concat([0, 0, 0, 1, 0]);
            _local1[DESATURATE] = new ColorMatrixFilter(_local2);
            return (_local1);
        }
        public static function getFilter(_arg1:String):BitmapFilter{
            return ((_filters[_arg1] as BitmapFilter));
        }

    }
}//package net.wooga.pets.utils 
